<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script src="https://unpkg.com/vue@2.6/dist/vue.min.js"></script>
<!-- <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.7/vue.min.js"></script> -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<script src="https://unpkg.com/element-ui/lib/index.js"></script>

<body>
    <el-button>按钮1</el-button>
    <div id="app">
        <el-button>按钮</el-button>
        <input type="file" @change="add">
        <div class="block">
            <span class="demonstration">默认</span>
            <el-date-picker
              v-model="value1"
              type="date"
              placeholder="选择日期"
              value-format="yyyy-MM-dd">
            </el-date-picker>
          </div>
    </div>
</body>
<script>
    var app = new Vue({

        el: "#app",
        data(){
            return{
                value1:""
            }
        },
        methods:{
            add(e){
                 console.log(e);
            }
        }
    })
</script>

</html>